package com.jml.springsecurity.validate.code;

import java.awt.image.BufferedImage;
import java.io.Serializable;
import java.time.LocalDateTime;

public class ValidateCode implements Serializable {
	//随机数
	private String code;
	//时间
	private LocalDateTime expireTime;

	public ValidateCode(String code, int expireTime) {
		this.code = code;
		//化为秒
		this.expireTime = LocalDateTime.now().plusSeconds(expireTime);
	}
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public LocalDateTime getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(LocalDateTime expireTime) {
		this.expireTime = expireTime;
	}

	public boolean isExpried() {
		return false;
	}
}
